<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymleaf.org">
<head>
    <meta charset="UTF-8">
    <link th:href="@{/css/bootstrap.min.css}" type="text/css" rel="stylesheet"/>
    <script src="https://code.jquery.com/jquery-3.6.0.js" integrity="sha256-H+K7U5CnXl1h5ywQfKtSj8PCmoN9aaq30gDh27Xc0jk=" crossorigin="anonymous"></script>
    <script th:src="@{/js/jquery.md5.js}" type="text/JavaScript"></script>
    <script type="text/javascript" th:src="@{/js/bootstrap.min.js}"></script>
    <script type="text/javascript" th:src="@{/js/jquery.validate.min.js}"></script>
    <script type="text/javascript" th:src="@{/js/common.js}"></script>
    <script type="text/javascript" th:src="@{/js/layer/layer.js}"></script>
    <title>订单详情</title>
</head>
<body>
<div class="panel-default">
    <div class="panel-heading">秒杀商品详情</div>
    <table class="table" id="order">
        <tr>
            <td>商品名称</td>
            <td colspan="3" th:text="${goods.goodsName}"></td>
        </tr>
        <tr>
            <td>商品图片</td>
            <td colspan="2"><img th:src="@{${goods.goodsImg}}" width="200" height="200"></td>
        </tr>
        <tr>
            <td>订单价格</td>
            <td colspan="2" th:text="${goods.goodsPrice}"></td>
        </tr>
        <tr>
            <td>下单时间</td>
            <td colspan="2" th:text="${#dates.format(order.createDate,'yyyy-MM-dd HH:mm:ss')}"></td>
        </tr>
        <tr>
            <td>订单状态</td>
            <td>
                <span th:if="${order.status} eq 0">未支付</span>
                <span th:if="${order.status} eq 1">待发货</span>
                <span th:if="${order.status} eq 2">已发货</span>
                <span th:if="${order.status} eq 3">已收货</span>
                <span th:if="${order.status} eq 4">已退款</span>
                <span th:if="${order.status} eq 5">已完成</span>
            </td>
            <td>
                <button type="submit" class="btn btn-primary btn-block" id="payButton">立即支付</button>
            </td>
        </tr>
        <tr>
            <td>收件人</td>
            <td>hzl 15119989988</td>
        </tr>
        <tr>
            <td>收货地址</td>
            <td>广东省汕头市金平区玉兰园</td>
        </tr>
    </table>
</div>
</body>
</html>